<p:dialog xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:t="http://myfaces.apache.org/tomahawk"
	xmlns:ap="http://aplikata.com/facelets"
	header="#{msgs.patient_qtnaire_edit}" widgetVar="qtnaireDialog"
	resizable="false" id="qtnaireD" width="650" showEffect="fade"
	hideEffect="explode" modal="true" height="600">
	<p:ajax event="close" update="displayPage" listener="#{evokPatientQtnaireBean.handleClose}"/>
	<h:panelGrid id="displayPage" columns="1" width="100%"
		rendered="#{evokPatientQtnaireBean.patientQtnaire != null and evokPatientQtnaireBean.patientQtnaire.qtnaire.page != ''}">
		<f:facet name="header">
			<h:outputText
				value="#{evokPatientQtnaireBean.patientQtnaire.qtnaire.name}" style="float:left;"></h:outputText>
		</f:facet>
		<br />
		<ui:include
			src="/pages/aplikata/evok/doctor/qtnaire/basic_qtnaire.xhtml" />
		<br />
		<h:panelGroup style="float:right;">
			<p:commandButton value="#{msgs.button_submit}"
				update=":messages, :mainform:tabviewTherapy:qtnirePanelGrid"
				oncomplete="handleSubmit(xhr, status, args, qtnaireDialog)"
				actionListener="#{evokPatientQtnaireBean.submitAction}"
				icon="ui-icon-disk" />
		</h:panelGroup>
	</h:panelGrid>
	<h:panelGrid id="displayNoPage" columns="1" width="100%"
		rendered="#{evokPatientQtnaireBean.patientQtnaire == null or evokPatientQtnaireBean.patientQtnaire.qtnaire.page == ''}">
		<h:outputText value="#{msgs.pateint_qtnaire_empty}"
			style="font-weight: bold; font-size: 1.6em;" />
	</h:panelGrid>
</p:dialog>